package com.supreme.proxyserver.config.props;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Data
@Component
@EnableConfigurationProperties(value = {SpringDatasourceProps.class})
@PropertySource(value = {"classpath:application.properties"}, encoding = "UTF-8")
@ConfigurationProperties(value = "spring.datasource.dynamic.datasource.primary", ignoreInvalidFields = true)
public class SpringDatasourceProps {

    private String name;

    private String url;

    private String username;

    private String password;
}
